<?php
header('Content-type:text/html;charset=utf-8');
date_default_timezone_set('PRC');


if(!empty($_POST['user'])){
	$date= include './mdb.php';
	$date[]=$_POST;
	$phpCode =var_export($date,true);
	file_put_contents('./mdb.php',"<?php \r\n return " .$phpCode ."\r\n?>");
$js=<<<js
<div id="sue" style='display:block;'><div class="alert">提示信息<br />添加成功！2秒后跳转首页若无响应请<a href='liuyanban.php' >点此返回</a></div></div>
js;
echo $js;
 echo "<script>setTimeout(function(){window.location.href='liuyanban.php'},2000)</script>";
}
$date= include './mdb.php';

// var_dump($date);
 ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>提交成功</title>
	<link rel="stylesheet" type="text/css" href="css/edit.css" />
	<script type="text/javascript" src='js/jquery-1.7.2.min.js'></script>

</head>
<body>
	

			
		

</body>
</html>